package com.hopes.bizz.close.gis.vo.hazard;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 进、出园数量VO
 * @time 2024/2/26 18:44
 */
@Data
@NoArgsConstructor
public class EnterOuterCountChartVO extends EnterOuterCountVO {

    private static final long serialVersionUID = 7968774105546004518L;

    /**
     * 下标
     */
    private String index;


    public EnterOuterCountChartVO(String index) {
        this.index = index;
    }

    public EnterOuterCountChartVO(String index, Integer notEnter, Integer hasEnter, Integer hasOuter) {
        super(notEnter, hasEnter, hasOuter);
        this.index = index.length() == 13 ? index + ":00" : index;
    }

}
